<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>split</title>
	</head>
	<body>
		<script>
			var str="2017-12-26";
			var strs=str.split("-");
			alert(strs[0]);
			alert(strs[1]);
			alert(strs[2]);
		</script>
	</body>
</html>
